﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using SqlSugar;

namespace Admin.NET.Application.Entity;

/// <summary>
/// 轮播图信息实体类
/// </summary>
[SugarTable("base_banner", "轮播图信息")]
public class BannerEntity : EntityBase
{
    /// <summary>
    /// 轮播图标题
    /// </summary>
    [SugarColumn(ColumnDescription = "轮播图标题", Length = 50, IsNullable = false)]
    public string Title { get; set; }

    /// <summary>
    /// 轮播图描述
    /// </summary>
    [SugarColumn(ColumnDescription = "轮播图描述", Length = 150, IsNullable = true)]
    public string Description { get; set; }

    /// <summary>
    /// 轮播图图片地址（URL）
    /// </summary>
    [SugarColumn(ColumnDescription = "轮播图图片地址", Length = 255, IsNullable = true)]
    public string ImageUrl { get; set; }

    /// <summary>
    /// 点击跳转链接地址
    /// </summary>
    [SugarColumn(ColumnDescription = "点击跳转链接地址", Length = 255, IsNullable = true)]
    public string LinkUrl { get; set; }

    /// <summary>
    /// 排序权重，用于控制展示顺序（数值越小越靠前）
    /// </summary>
    [SugarColumn(ColumnDescription = "排序权重" , IsNullable = true)]
    public int OrderNum { get; set; }

    /// <summary>
    /// 是否启用该轮播图
    /// </summary>
    [SugarColumn(ColumnDescription = "是否启用该轮播图",  IsNullable = true)]
    public bool IsEnabled { get; set; }


    /// <summary>
    /// 轮播图生效开始时间
    /// </summary>
    [SugarColumn(ColumnDescription = "轮播图生效开始时间", IsNullable = true)]
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 轮播图生效结束时间
    /// </summary>
    [SugarColumn(ColumnDescription = "轮播图生效结束时间", IsNullable = true)]
    public DateTime? EndTime { get; set; } 
}
